let mysqlConfigProduction = {
  host: "47.108.228.163", // 数据库地址
  port: "3306", // 端口
  user: "admin", // 用户名称
  password: "Admin123456%", // 用户密码
  database: "book-system", // 要链接的数据库名称
}
let mysqlConfigDevelopment = {
  host: "127.0.0.1",
  port: "3306",
  user: "root",
  password: "123456",
  database: "book-system",
}

let mysqlConfig
if (process.env.NODE_ENV === 'development') {
  mysqlConfig = mysqlConfigDevelopment
} else if (process.env.NODE_ENV === 'production') {
  mysqlConfig = mysqlConfigProduction;
}

exports.mysqlConfig = mysqlConfig

exports.SECRET_KEY = "kkcbaskb89wyhoudbaskjbc" // jwt 密钥
